package router

import (
	"content_system/handler"
	"github.com/gin-gonic/gin"
)

func RegisterContentRouter(r *gin.Engine) {
	contentHandler := handler.GetContentHandler()
	contentPerm := r.Group(rootPath + "/content")
	contentPerm.Use(authMiddleware.Auth)
	{
		contentPerm.POST("/create", contentHandler.Create)
		contentPerm.POST("/update", contentHandler.Update)
		contentPerm.POST("/delete", contentHandler.Delete)
	}
}
